﻿using AspireFyh.ApiService.Services;
using Microsoft.AspNetCore.Mvc;

namespace AspireFyh.ApiService.Controllers;
[ApiController]
[Route("api/[controller]")]
public class AccountController(IAccountService accountService) : ControllerBase
{
    // GET
    [HttpGet]
    public async Task<IActionResult> GetAccount()
    {
        var accounts =await accountService.GetAccounts();
        return Ok(accounts);
    }
}